package chat.whiteboard.draw.state;

import chat.whiteboard.WhiteBoardController;
import chat.whiteboard.draw.elements.Rectangle;

public class RectangleState extends DrawingState{
	private WhiteBoardController controller = null;
	public RectangleState(WhiteBoardController controller) {
		this.controller = controller;
	}
	@Override
	public void mouseDown(int x, int y) {
		System.out.println(this.getClass().getName() + " Mouse Down");
		controller.addDrawing(new Rectangle(x, y).setColor(this.color));
	}
}
